/* describes a 2D world and its behavior
 * this is meant to be used like an abstract class
 * to create other worlds
 */
var World = function() {

	this.container = new PIXI.Container();

	/* runs when the world is first created */
	this.constructor = function() {
	};

	/* runs when all assets are loaded */
	this.start = function() {
	};

	/* runs once per frame */
	this.update = function() {
	};

	/* runs once per frame, if needed */
	this.draw = function() {
	};

	/* specify assets to load for this world */
	this.assets = function() {
		return [];
	};

	/* called when the screen resizes */
	this.resize = function() {
	};

	this.destroy = function() {
		this.container.destroy({children: true});
	};

	this.input = function() {
	};
};
